This is the regular cron hook for Drupal. See the Drupal documentation for this.
